home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / OWLINC.PAK / MODEGAD.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  1KB  |  50 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1995, 1997 by Borland International, All Rights Reserved
  4. //
  5. //$Revision:   10.4  $
  6. //
  7. // Definition of mode-tracking text gadget class TModeGadget.
  8. //----------------------------------------------------------------------------
  9. #if !defined(OWL_MODEGAD_H)
  10. #define OWL_MODEGAD_H
  11.  
  12. #if !defined(OWL_TEXTGADG_H)
  13. # include <owl/textgadg.h>
  14. #endif
  15.  
  16. #if defined(BI_NAMESPACE)
  17. namespace OWL {
  18. #endif
  19.  
  20. // Generic definitions/compiler options (eg. alignment) preceeding the 
  21. // definition of classes
  22. #include <services/preclass.h>
  23.  
  24. //
  25. // class TModeGadget
  26. // ~~~~~ ~~~~~~~~~~~
  27. class _OWLCLASS TModeGadget : public TTextGadget {
  28.   public:
  29.     TModeGadget(int vkKey, const char far* text, int id = 0,
  30.                 TBorderStyle = Recessed, TAlign = Center,
  31.                 TFont* font = 0 /*new TGadgetWindowFont*/);
  32.  
  33.     // Override from TGadget
  34.     //
  35.     bool IdleAction(long count);
  36.  
  37.   private:
  38.     int VkKey;
  39. };
  40.  
  41. // Generic definitions/compiler options (eg. alignment) following the 
  42. // definition of classes
  43. #include <services/posclass.h>
  44.  
  45. #if defined(BI_NAMESPACE)
  46. } // namespace OWL
  47. #endif
  48.  
  49. #endif // OWL_MODEGAD_H
  50.